package com.zlp.entity;

import io.swagger.annotations.ApiModelProperty;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;
@Component
public class SysUser implements Serializable {
    /**
     * PK
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "PK")
    private Integer id;

    /**
     * 用户CODE
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "用户CODE")
    private String userCode;

    /**
     * 用户名
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "用户名")
    private String userName;

    /**
     * 密码
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "密码")
    private String password;

    private Integer deptId;

    /**
     * 邮箱
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 手机号
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "手机号")
    private String phone;

    /**
     * 状态 0:禁用，1:正常
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "状态 0:禁用，1:正常")
    private Byte status;

    /**
     * 创建用户id
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "创建用户id")
    private Long userIdCreate;

    /**
     * 1-已删除；0-未删除
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "1-已删除；0-未删除")
    private String isDelete;

    /**
     * 是否有超管权限 1-有 0-没有
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "是否有超管权限 1-有 0-没有")
    private Integer isAdmin;

    /**
     * 创建时间
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    private String createBy;

    /**
     * 更新时间
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 更新人
     *
     * @mbggenerated
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Long getUserIdCreate() {
        return userIdCreate;
    }

    public void setUserIdCreate(Long userIdCreate) {
        this.userIdCreate = userIdCreate;
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(Integer isAdmin) {
        this.isAdmin = isAdmin;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userCode=").append(userCode);
        sb.append(", userName=").append(userName);
        sb.append(", password=").append(password);
        sb.append(", deptId=").append(deptId);
        sb.append(", email=").append(email);
        sb.append(", phone=").append(phone);
        sb.append(", status=").append(status);
        sb.append(", userIdCreate=").append(userIdCreate);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", isAdmin=").append(isAdmin);
        sb.append(", createTime=").append(createTime);
        sb.append(", createBy=").append(createBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}